package main

type Operator func(float64, float64) float64

type ICalculater interface {
	apply(fnList ...Operator) float64
}

type Calculater struct {
	name string
}

func (c Calculater) apply(fnList ...Operator) float64 {
	result := 0.0
	for _, f := range fnList {
		f(result, result)
	}
	return 0
}
